Expand description
Development extensions for the Rust Standard Library.
Features
std
(default): enables functionality that depends on the standard library. Disabling it makes the crateno_std
compatible.alloc
: enables functionality that depends on allocation. Included instd
.no-std
: enables functionality incompatible withstd
(unused).
safe
: forbids allunsafe
code at the crate level.unsafe
: meta feature enabling every modular unsafe feature:unsafe_cmp
: enables const floating-point comparison incmp
, usingtransmute
for constant access to the bits.unsafe_convert
: enables usingMaybeUninit
for array initialization inslice_into_array
.unsafe_fmt
: providesIntBuf
andIntBufable
infmt
. Unsafe blocks are ported verbatim fromitoa
.unsafe_num
: enablesnew_unchecked
and implementsbytemuck
traits for new types defined innum
.
Modules
- All the types and traits are flat reexported here.
- The
Box<T>
type, extendsalloc::boxed
. - Comparing and ordering, extends
core::cmp
. - Code generation and meta-programming.
- Conversion, extends
core::convert
. - Formatting, extends
alloc::fmt
. - Memory, extends
core::mem
. - Numeric types, extends
core::num
. - Operators, extends
core::ops
. - Option, extends
core::option
. - Paths, extends
std::path
. - The common prelude.
- Result, extends
core::result
. - Slice, extends
alloc::slice
. - Strings, extends
alloc::string
.